<?php

use think\Route;
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

// return [
//     '__pattern__' => [
//         'name' => '\w+',
//     ],
//     '[hello]'     => [
//         ':id'   => ['index/hello', ['method' => 'get'], ['id' => '\d+']],
//         ':name' => ['index/hello', ['method' => 'post']],
//     ],

// ];

// Route::get([

//     'l' => function () {
//         return 'Hello,world!';
//     },
//     'l' => function () {
//         return 'Hello';
//     },
//     'l' => function () {
//         return 'world!';
//     },
//     // 'l' => 'index/index/index',
//     // 'l' => 'index/index/fff',
//     // 'hello/[:id]' => ['index/index/index', [], ['id' => '/^\d+$/']]
// ]);

// Route::get('aaa', 'index/index/ok');
// Route::any('weekend/:', 'index/index/index', ['method' => 'get']);
Route::get('weekend/:id$', 'index/index/index',  ['id' => '/^\d+$/']);
Route::get('thusday', 'index/index/thusday');
Route::get('aaa/:test/:name/:sdf', 'index/index/dasd?a=12');
// Route::get('aaa', 'index/test.test/index');
// Route::get('firday/:id','index/index/thusday',['callback'=>'beforeCheck']);
// Route::controller('index', 'index/index');
Route::miss('index/index/index','*',['https' => true]);

// ,'*', ['https' => true]
// Route::rule('hello/:id', 'index/index/hello', 'GET', [
//     'ext' => 'html',
//     'bind_model' => [
//         'user' => '555',
//     ],
// ]);